@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  // overflow-y: scroll;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
input[type='number'] {
  -moz-appearance: textfield;
}
.my-autocomplete {
  li {
    line-height: normal !important;
    padding: 7px !important;

    .name {
      text-overflow: ellipsis;
      overflow: hidden;
    }
    .addr {
      font-size: 12px;
      color: #b4b4b4;
    }

    .highlighted .addr {
      color: #ddd;
    }
  }
}
.repeat-main {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 1%;
}

.color-success {
  color: #67C23A !important;
}
.color-blue {
  color: #409EFF !important;
}
.color-primary {
  color: #409EFF !important;
}

.color-minor {
  color: #C0C4CC !important;
}
.color-warning {
  color: #E6A23C !important;
}
.color-danger {
  color: #F56C6C !important;
}
.color-info {
  color: #909399 !important;
}
.color-routine {
  color: #606266 !important;
}

label {
  font-weight: 700;
}

.not-dialog-title {
  .el-dialog__header {
    display: none;
  }
  .el-dialog__body {
    padding: 0;
    .el-tabs--card > .el-tabs__header .el-tabs__nav {
      border-radius: 0;
    }
  }
}

.not-last-margin {
  .el-form-item:last-child {
    margin: 0;
  }
}

.not-label {
  .el-form-item__label {
    width: auto !important;
  }
  .el-form-item__content {
    margin-left: 0 !important;
  }
}

.not-resize .el-textarea__inner{
  resize: none;
}

.input-button .el-input-group__append {
  color: #ffffff;
  line-height: 1;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  border-color: #409eff;
  background-color: #409eff;
}
.input-button .el-input-group__append:hover {
  color: #FFF;
  border-color: #66b1ff;
  background-color: #66b1ff;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

.el-loading-spinner {
  margin-top: 0;
}

// main-container global css
.table-top-button {
  button {
    padding: 5px 13px !important;
    margin-bottom: 6px;
  }
}
.el-table {
  box-sizing: border-box;
  th {
    padding: 0;
    height: 40px;
    line-height: 40px;
    background-color: #f2f2f2;
  }
  td {
    padding: 0;
    height: 38px;
    line-height: 38px;
  }
}

.el-table__body .el-table__expanded-cell {
  padding: 0;
  background-color: #f2f2f2 !important;
  .el-table {
    width: auto;
    border-left: 1px solid #EBEEF5;
    .el-table__header {
      th {
        height: 37px;
        color: #909399;
        line-height: 37px;
        background-color: #fcfcfc;
      }
    }
    td {
      height: 35px;
      color: #909399;
      line-height: 35px;
    }
  }
  .el-table tr:last-child td {
    border-bottom: #20a0ff;
  }
  .el-table::before {
    background-color: transparent;
  }
}

.app-container {
  box-sizing: border-box;
  margin: 10px 10px 0 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 1%;

  .toolbar-search {
    margin-bottom: 10px;
    padding: 20px 20px 0 20px !important;
    .el-form {
      .el-form-item {
        margin-right: 20px;
        label {
          font-weight: normal;
        }
      }
      .form-button {
        display: inline;
        .el-form-item:first-child {
          margin-right: 8px;
        }
      }
    }
  }

  .toolbar-search, .table-main {
    padding: 15px;
    background-color: #ffffff;
  }

  .partition-container {
    display: flex;
    .partition-left {
      flex-grow: 1;
      margin-right: 15px;
    }
    .partition-right {
      border: 1px solid #DCDFE6;
      .title {
        height: 31px;
        font-size: 14px;
        font-weight: 700;
        line-height: 31px;
        padding-left: 8px;
        background-color: #f2f2f2;
      }
      .rule-main {
        margin-top: 1px;
        overflow-y: scroll;
        .el-tree {
          margin-top: 5px;
        }
      }
    }
  }
}

.el-form-item__content {
  .el-select, .el-cascader {
    width: 100%;
  }
}

.el-message-box {
  margin-bottom: 350px !important;
}

.resize-none textarea {
  resize: none !important;
}

.el-image {
  padding: 3px;
  color: #c0c4cc;
  position: relative;
  box-sizing: border-box;
  border: 1px solid #dfe6ec;
  > div {
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    background-color: #f5f7fa;
    i {
      font-size: 160%;
    }
  }
  // 重载图片加载过程显示下过
  .el-image__placeholder {
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    width: auto;
    height: auto;
    position: absolute;
    font-family: element-icons, serif !important;
  }
  .el-image__placeholder:before {
    color: #8c939d;
    font-size: 170%;
    content: "\e6cf";
    animation: rotating 2s linear infinite;
  }
}
.el-upload--picture-card {
  background-color: #f5f7fa;
}

.read-only.el-input.is-disabled .el-input__inner {
  color: #606266;
  cursor: default;
  background-color: #ffffff;
}

.tabs-main.el-tabs {
  padding: 0;
  background-color: #ffffff;
  .el-tabs__header {
    margin-bottom: 0;
    .el-tabs__nav {
      border-top: none;
      border-left: none;
    }
  }
}

.app-container-ft {
  background-color: #fff;
  padding: 5px 15px;
  box-shadow: 0px -3px 10px 0px rgba(0, 0, 0, 0.1);
}
.app-container-hd {
  flex-grow: 1;
  height: 1%;
  overflow-y: scroll;
}
.overflow-y-s {
  overflow-y: scroll;
}

.app-container {
  .el-image-viewer__next, .el-image-viewer__prev {
    color: #606266;
    background-color: #fff;
  }
}
.form-select-datetime {
  display: flex;

  .el-form-item:nth-last-child(2) {
    margin-right: -1px !important;

    .el-input__inner {
      border-top-right-radius: 0 !important;
      border-bottom-right-radius: 0 !important;
    }
  }

  .el-form-item.append:nth-last-child(1) {
    margin-right: 0 !important;

    .el-input__inner {
      border-top-left-radius: 0 !important;
      border-bottom-left-radius: 0 !important;
    }
  }
}

.statement {
  display: flex;
  flex-wrap: wrap;
  background-color: #FFFFFF;
  .statement-item {
    flex: 1 0 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    border: 1px solid #F0F0F0;
  }
  .statement-item-hd {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
  }
  .statement-item-bd {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  .statement-item-ft {
    color: #888888;
  }
}
